constructing a perpendicular line through a point on the line